[solved] Help With Writing Out This Program Please In Python Functions

[solved] Help With Writing Out This Program Please In Python Functions